package struts2.hanh;

import DAO.Dao_Programme;

import com.opensymphony.xwork2.ActionSupport;


public class DeactiveAction extends ActionSupport{
	private String name;
	private String des;
	private boolean active;

	public String execute() throws Exception {
		active= false;
		Dao_Programme dao = new Dao_Programme();
		dao.setDsUpdate(name, des, active);
		return "success";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}
}
